/*  This file is a part of JJSched source code
    JJSched - Java Jabber Scheduler - a simple Jabber scheduling application
    Copyright (C) 2008 Cestmir "CZestmyr" Houska

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/> */

package czestmyr.jjsched;

/**
 * An action that can be taken in response to a parsed command.
 */
public class Action {
	Action(ActionId id) {
		this.id = id;
	}

	/**
	 * Debugging method
	 */
	public synchronized void dump() {
		System.out.println("------------------ Action: "+id+" -------------------");
		System.out.println("user:          "+user);
		System.out.println("unescapedUser: "+unescapedUser);
		System.out.println("otherUser:     "+otherUser);
		System.out.println("lParam:        "+lParam);
		System.out.println("iParam:        "+iParam);
		System.out.println("sParam1:       "+sParam1);
		System.out.println("sParam2:       "+sParam2);
	}

	public ActionId id;

	public String user;
	public String unescapedUser;
	public String otherUser;

	public long lParam;
	public int iParam;
	public String sParam1;
	public String sParam2;

	public PlanStruct plan = new PlanStruct();
}
